package org.dxy.domain.event.process;

import org.dxy.domain.event.AggregateTypeEnum;
import org.dxy.domain.event.DomainEvent;

/**
 * @description: 工序创建事件
 * @author: dxy
 * @createTime: 2025/8/9
 */
public record ProcessCreatedEvent(
        /**
         * 工序ID
         */
        Long processId,

        /**
         * 工序编码
         */
        String processCode,
        
        /**
         * 工序状态
         */
        String status
) implements DomainEvent {
    
    @Override
    public Long aggregateId() {
        return processId;
    }
    
    @Override
    public String aggregateType() {
        return AggregateTypeEnum.PROCESS.getKey();
    }
    
    @Override
    public String eventType() {
        return ProcessEventTypeEnum.CREATED.getKey();
    }
}